/**
 * @file name HallActivity.java
 */
package com.digital.community;

import java.util.ArrayList;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;

/**
 * 
 * @author yarine.gao
 * @date 2012-11-3
 * @version 1.0.0
 */
public class HallActivity extends Activity {
    
	LayoutInflater inflater = null;
	
	LinearLayout[] lyoutArr = null;
	
	private ArrayList<String> nationList;
	private ArrayList<String> cardtypeList;
	private ArrayList<String> genderList;
	private String uguid;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.hall);
        
        Intent intent = getIntent();
        nationList = intent.getStringArrayListExtra("nation");
        cardtypeList = intent.getStringArrayListExtra("cardtype");
        genderList = intent.getStringArrayListExtra("gender");
        uguid = intent.getStringExtra("uguid");
        
        init();
    }

    
    public void init() {
    	lyoutArr = new LinearLayout[3];
    	lyoutArr[0] = (LinearLayout)findViewById(R.id.lyout1);
    	lyoutArr[1] = (LinearLayout)findViewById(R.id.lyout2);
    	lyoutArr[2] = (LinearLayout)findViewById(R.id.lyout3);
    	
    	inflater = LayoutInflater.from(this);
    	
    	LinearLayout item = (LinearLayout)inflater.inflate(R.layout.hall_item, null);
    	
    }
    
    public void toRenKou(View view) {
    	Intent intent = new Intent(HallActivity.this, TBPersonActivity.class);
    	intent.putStringArrayListExtra("nation", nationList);
		intent.putStringArrayListExtra("cardtype", cardtypeList);
		intent.putStringArrayListExtra("gender", genderList);
    	startActivity(intent);
    }
    
    public void toRenWu(View view) {
    	Intent intent = new Intent(HallActivity.this, TBTaskActivity.class);
    	startActivity(intent);
    }
    
    public void toPassword(View view) {
    	Intent intent = new Intent(HallActivity.this, PasswordActivity.class);
    	intent.putExtra("uguid", uguid);
    	startActivity(intent);
    }
}
